@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
    <table id="example" class="table table-striped responsive-utilities jambo_table">
        <thead>
        <tr class="headings">
            <th>
                <input type="checkbox" class="tableflat">
            </th>
            <th>编号</th>
            <th>产品名称</th>
            <th>产品分类</th>
            <th>价格</th>
            <th>商家</th>
            <th>状态</th>
            <th class=" no-link last"><span class="nobr">操作</span>
            </th>
        </tr>
        </thead>

        <tbody>
        @foreach($product_list as $k => $p)
            <tr class="even pointer img-box">
                <td class="a-center ">
                    <input type="checkbox" class="tableflat">
                </td>
                <td class=" ">{{$p->product_id}}</td>
                <td class="tr-time">
                    <img src="{{$p->product_img}}" alt="">
                    <span>{{$p->product_name}}</span>
                </td>
                <td class="tr-time">{{$p->category}}</td>
                <td class=" ">{{$p->price}}</td>
                <td class=" ">{{$p->supplier_name}}</td>
                <td class=" ">@if($p->is_up) 上架 @else 下架 @endif</td>
                <td class=" last">
                    <a href="/product_import?product_id={{ $p->product_id }}">编辑</a>
                    <a href="javascript:;"  class="delete"  data-product_id="{{ $p->product_id }}">删除</a>
                </td>
            </tr>
        @endforeach
        </tbody>

    </table>
@stop